#include<stdio.h>
int main()
{
	int a = 0;
	int sum = 0;
	for (a = 0; a <= 100; a += 3)
	{
		sum = sum + a;
		printf("%d\n", sum);
	}
	return 0;
}